Skip to content

[Merged by Bors] - feat(Analysis/SpecialFunctions/Complex/Log): natural number versions of exp_eq_one_iff#38015

Closed
riccardobrasca wants to merge 7 commits intoleanprover-community:masterfrom
riccardobrasca:rb-exp-eq-one-iff-nat
Closed

[Merged by Bors] - feat(Analysis/SpecialFunctions/Complex/Log): natural number versions of exp_eq_one_iff#38015
riccardobrasca wants to merge 7 commits intoleanprover-community:masterfrom
riccardobrasca:rb-exp-eq-one-iff-nat

Conversation

@riccardobrasca
Copy link
Copy Markdown
Member

@riccardobrasca riccardobrasca commented Apr 13, 2026

Add two lemmas:

  • Complex.exp_eq_one_iff_of_im_nonneg, a variant of Complex.exp_eq_one_iff that gives a natural number instead of an integer, under the hypothesis that the imaginary part is nonneg.
  • Complex.exp_two_pi_mul_I_mul_div_eq_one_iff, showing that exp (2πik/N) = 1 if and only if N ∣ k.

🤖 Generated with Claude Code

…f exp_eq_one_iff

Add `Complex.exp_eq_one_iff_of_im_nonneg`, a variant of `Complex.exp_eq_one_iff`
that produces a natural number instead of an integer, under the hypothesis that
the imaginary part is nonneg.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 13, 2026

PR summary bdd1fc861b

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ exp_eq_one_iff_of_im_nonneg
+ exp_two_pi_mul_I_mul_div_eq_one_iff

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-analysis Analysis (normed *, calculus) label Apr 13, 2026
@riccardobrasca riccardobrasca added the WIP Work in progress label Apr 13, 2026
riccardobrasca and others added 3 commits April 13, 2026 20:55
…ff N divides k

Add `Complex.exp_two_pi_mul_I_mul_div_eq_one_iff`: for natural numbers
`k` and `N` with `N ≠ 0`, `exp (2 * π * I * k / N) = 1 ↔ N ∣ k`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@riccardobrasca riccardobrasca removed the WIP Work in progress label Apr 13, 2026
@riccardobrasca riccardobrasca changed the title feat(Analysis/SpecialFunctions/Complex/Log): natural number version of exp_eq_one_iff feat(Analysis/SpecialFunctions/Complex/Log): natural number versions of exp_eq_one_iff Apr 13, 2026
@grunweg grunweg added the LLM-generated PRs with substantial input from LLMs - review accordingly label Apr 14, 2026
Comment thread Mathlib/Analysis/SpecialFunctions/Complex/Log.lean Outdated
Comment thread Mathlib/Analysis/SpecialFunctions/Complex/Log.lean Outdated
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

Comment thread Mathlib/Analysis/SpecialFunctions/Complex/Log.lean Outdated
Comment thread Mathlib/Analysis/SpecialFunctions/Complex/Log.lean Outdated
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 15, 2026

✌️ riccardobrasca can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Apr 15, 2026
riccardobrasca and others added 3 commits April 15, 2026 15:57
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
@riccardobrasca
Copy link
Copy Markdown
Member Author

bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Apr 15, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 15, 2026
…of exp_eq_one_iff (#38015)

Add two lemmas:
- `Complex.exp_eq_one_iff_of_im_nonneg`, a variant of `Complex.exp_eq_one_iff` that gives a natural number instead of an integer, under the hypothesis that the imaginary part is nonneg.
- `Complex.exp_two_pi_mul_I_mul_div_eq_one_iff`, showing that `exp (2πik/N) = 1` if and only if `N ∣ k`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 15, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Analysis/SpecialFunctions/Complex/Log): natural number versions of exp_eq_one_iff [Merged by Bors] - feat(Analysis/SpecialFunctions/Complex/Log): natural number versions of exp_eq_one_iff Apr 15, 2026
@mathlib-bors mathlib-bors bot closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). LLM-generated PRs with substantial input from LLMs - review accordingly ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants